#include "skybox.h"

Skybox::Skybox(Game* game) : Model(game) {
    this->SetModelFilename("box16.txt");
    this->SetScale(285);
    this->SetTextureFilename("stars-texture-2.bmp");
}

Skybox::~Skybox(void) {
}

void Skybox::Draw(float timeDelta) {
    Vector4 ambientLight = this->GetGame()->GetLightManager()->GetAmbientLight();
    this->GetGame()->GetLightManager()->SetAmbientLight(Vector4(1.0f, 1.0f, 1.0f, 0.0f));
    Model::Draw(timeDelta);
    this->GetGame()->GetLightManager()->SetAmbientLight(ambientLight);
}

void Skybox::Update(float timeDelta) {
    this->SetPosition(Vector4(Pipeline.GetCameraX(), Pipeline.GetCameraY(), Pipeline.GetCameraZ(), 1.0f));
}